﻿using SharpStockLib.Data;
using SharpStockLib.Fin;

namespace SharpBackTestLib.Orders
{
    /// <summary>
    /// Represents an exit
    /// </summary>
    public class ExitSignal
    {
        public ESignalType Type { get; set; }
        /// <summary>
        /// Data that triggered the signal.
        /// </summary>
        public IData Trigger { get; set; }
        public IInstrument Instrument { get; set; }

        public ExitSignal(ESignalType type, IData trigger, IInstrument instrument)
        {
            Type = type;
            Trigger = trigger;
            Instrument = instrument;
        }
    }
}
